import { useState } from "react";
import {  Text, TextInput, View } from "react-native";

export default function APP(){
  const [text, setText] = useState('');
  return(
    <View>
    <TextInput
      style={{height: 40, borderColor: 'gray', borderWidth: 1}}
      placeholder="请输入内容"
      onChangeText={setText}
    />
    <Text>输入的内容：{text}</Text>
    </View>
  )
}
